package com.tudouji.project.mt.http.response;

import lombok.Data;

import java.util.List;

@Data
public class FoodConsumptionResponse {


    /**
     * items : [{"rootOrgId":2140423,"orgId":2141591,"orgCode":"MD00001","itemSn":"CHCK2312080001","bizDate":1701964800000,"status":{"id":1,"name":"未出库"},"theoreticalCalcStatus":{"id":1,"name":"异常"},"onceLackFoodBom":true,"onceLackWarehouse":false,"orderStartTimeGTE":1701964800000,"orderEndTimeLTE":1702051199000,"version":20},{"rootOrgId":2140423,"orgId":2141591,"orgCode":"MD00001","itemSn":"CHCK2312070001","bizDate":1701878400000,"status":{"id":3,"name":"已出库"},"theoreticalCalcStatus":{"id":1,"name":"异常"},"onceLackFoodBom":true,"onceLackWarehouse":false,"orderStartTimeGTE":1701878400000,"orderEndTimeLTE":1701964799000,"version":37}]
     * page : {"pageNo":1,"pageSize":200,"totalCount":2,"totalPageSize":1}
     */

    private PageBean page;
    private List<ItemsBean> items;

    public PageBean getPage() {
        return page;
    }

    public void setPage(PageBean page) {
        this.page = page;
    }

    public List<ItemsBean> getItems() {
        return items;
    }

    public void setItems(List<ItemsBean> items) {
        this.items = items;
    }

    public static class PageBean {
        /**
         * pageNo : 1
         * pageSize : 200
         * totalCount : 2
         * totalPageSize : 1
         */

        private int pageNo;
        private int pageSize;
        private int totalCount;
        private int totalPageSize;

        public int getPageNo() {
            return pageNo;
        }

        public void setPageNo(int pageNo) {
            this.pageNo = pageNo;
        }

        public int getPageSize() {
            return pageSize;
        }

        public void setPageSize(int pageSize) {
            this.pageSize = pageSize;
        }

        public int getTotalCount() {
            return totalCount;
        }

        public void setTotalCount(int totalCount) {
            this.totalCount = totalCount;
        }

        public int getTotalPageSize() {
            return totalPageSize;
        }

        public void setTotalPageSize(int totalPageSize) {
            this.totalPageSize = totalPageSize;
        }
    }

    public static class ItemsBean {
        /**
         * rootOrgId : 2140423
         * orgId : 2141591
         * orgCode : MD00001
         * itemSn : CHCK2312080001
         * bizDate : 1701964800000
         * status : {"id":1,"name":"未出库"}
         * theoreticalCalcStatus : {"id":1,"name":"异常"}
         * onceLackFoodBom : true
         * onceLackWarehouse : false
         * orderStartTimeGTE : 1701964800000
         * orderEndTimeLTE : 1702051199000
         * version : 20
         */

        private int rootOrgId;
        private int orgId;
        private String orgCode;
        private String itemSn;
        private long bizDate;
        private StatusBean status;
        private TheoreticalCalcStatusBean theoreticalCalcStatus;
        private boolean onceLackFoodBom;
        private boolean onceLackWarehouse;
        private long orderStartTimeGTE;
        private long orderEndTimeLTE;
        private int version;

        public int getRootOrgId() {
            return rootOrgId;
        }

        public void setRootOrgId(int rootOrgId) {
            this.rootOrgId = rootOrgId;
        }

        public int getOrgId() {
            return orgId;
        }

        public void setOrgId(int orgId) {
            this.orgId = orgId;
        }

        public String getOrgCode() {
            return orgCode;
        }

        public void setOrgCode(String orgCode) {
            this.orgCode = orgCode;
        }

        public String getItemSn() {
            return itemSn;
        }

        public void setItemSn(String itemSn) {
            this.itemSn = itemSn;
        }

        public long getBizDate() {
            return bizDate;
        }

        public void setBizDate(long bizDate) {
            this.bizDate = bizDate;
        }

        public StatusBean getStatus() {
            return status;
        }

        public void setStatus(StatusBean status) {
            this.status = status;
        }

        public TheoreticalCalcStatusBean getTheoreticalCalcStatus() {
            return theoreticalCalcStatus;
        }

        public void setTheoreticalCalcStatus(TheoreticalCalcStatusBean theoreticalCalcStatus) {
            this.theoreticalCalcStatus = theoreticalCalcStatus;
        }

        public boolean getOnceLackFoodBom() {
            return onceLackFoodBom;
        }

        public void setOnceLackFoodBom(boolean onceLackFoodBom) {
            this.onceLackFoodBom = onceLackFoodBom;
        }

        public boolean getOnceLackWarehouse() {
            return onceLackWarehouse;
        }

        public void setOnceLackWarehouse(boolean onceLackWarehouse) {
            this.onceLackWarehouse = onceLackWarehouse;
        }

        public long getOrderStartTimeGTE() {
            return orderStartTimeGTE;
        }

        public void setOrderStartTimeGTE(long orderStartTimeGTE) {
            this.orderStartTimeGTE = orderStartTimeGTE;
        }

        public long getOrderEndTimeLTE() {
            return orderEndTimeLTE;
        }

        public void setOrderEndTimeLTE(long orderEndTimeLTE) {
            this.orderEndTimeLTE = orderEndTimeLTE;
        }

        public int getVersion() {
            return version;
        }

        public void setVersion(int version) {
            this.version = version;
        }

        public static class StatusBean {
            /**
             * id : 1
             * name : 未出库
             */

            private int id;
            private String name;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }
        }

        public static class TheoreticalCalcStatusBean {
            /**
             * id : 1
             * name : 异常
             */

            private int id;
            private String name;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }
        }
    }
}
